﻿using Microsoft.AspNet.Identity.EntityFramework;
using Stackoverflow.Core.Answers;
using Stackoverflow.Core.Comments;
using Stackoverflow.Core.Questions;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Stackoverflow.EntityFramework
{
    public partial class SOFDataContext : IdentityDbContext<IdentityUser>
    {
        public SOFDataContext()
            : base("DefaultConnection")
        {
            var ensureDLLIsCopied = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

        public DbSet<Question> Questions { get; set; }
        public DbSet<Answer> Answers { get; set; }
        public DbSet<Comment> Comments { get; set; }
    }
}
